import request from '@/utils/request'

// 查询生产班组列表
export function listWorkGroup(query) {
  return request({
    url: '/yyj/pbs/workGroup/list',
    method: 'get',
    params: query
  })
}

// 查询生产班组详细
export function getWorkGroup(wgCode) {
  return request({
    url: '/yyj/pbs/workGroup/' + wgCode,
    method: 'get'
  })
}

// 新增生产班组
export function addWorkGroup(data) {
  return request({
    url: '/yyj/pbs/workGroup',
    method: 'post',
    data: data
  })
}

// 修改生产班组
export function updateWorkGroup(data) {
  return request({
    url: '/yyj/pbs/workGroup',
    method: 'put',
    data: data
  })
}

// 删除生产班组
export function delWorkGroup(wgCode) {
  return request({
    url: '/yyj/pbs/workGroup/' + wgCode,
    method: 'delete'
  })
}
